package com.melody.entry;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName favorite_music_relation
 */
@TableName(value ="favorite_music_relation")
@Data
public class FavoriteMusicRelation implements Serializable {
    /**
     * 
     */
    @TableId(value = "favoritelist_music_id", type = IdType.AUTO)
    private Integer favoritelistMusicId;

    /**
     * 
     */
    @TableField(value = "favorite_id")
    private Integer favoriteId;

    /**
     * 
     */
    @TableField(value = "music_id")
    private Integer musicId;

    /**
     * 添加时间
     */
    @TableField(value = "add_time")
    private LocalDateTime addTime;

    /**
     * 歌曲在喜欢列表中的排序
     */
    @TableField(value = "sort_order")
    private Integer sortOrder;

    /**
     * 
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 是否删除，0:未删除，1:已删除
     */
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}